<template>
  <page-form :x-uri="uri" :x-tabs="tabs" :custom-components="custom" :bind-data="datas" />
</template>

<script>
import PageForm from '@public/template/page_form.vue';
import ChooseImage from '@/pages/material/choose/image.vue';

export default {
  components: {
    PageForm
  },
  data() {
    return {
      uri: '/admin/site/personal/items/' + this.$route.params.id + '/edit',
      tabs: [
        {
          title: '功能列表',
          uri: '/site/personal/items_app',
          meta: {
            permission: 'site.mobile.personal.menu'
          }
        },
        {
          title: '功能列表-编辑',
          uri: '/site/personal/items/' + this.$route.params.id + '/edit/app',
          meta: {
            permission: 'site.mobile.personal.menu.edit'
          }
        }
      ],
      custom: {
        icon: ChooseImage
      }
    };
  }
};
</script>
